package com.hqyj.dao;

import com.hqyj.pojo.Goods;
import com.hqyj.pojo.Reserve;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ReserveMapper {
    int deleteByPrimaryKey(Reserve record);
    int insert(Reserve record);
    int insertSelective(Reserve record);

    Reserve selectByPrimaryKey(@Param("tId") Integer tId, @Param("userId") Integer userId);

    int updateByPrimaryKeySelective(Reserve record);

    int updateByPrimaryKey(Reserve record);

    List<Goods> selectAllReserves(Goods goods);

    int seleceTableById(int tId);

    int deleteReserveBytId(Reserve reserve);

    int countNumberBytId(Integer tId);

    List<Reserve> selectAllReserves1(Reserve reserve);

    String selectUserIdByUserName(String userName);

    int countNumberAll();

    int countNumberLots();

    void updateTableState1(@Param("tId1") int tId1, @Param("userId1") int userId1);

    void updateTableState11(@Param("tId1") int tId1, @Param("userId1") int userId1);


    void updateTableState111(@Param("tId") Integer tId, @Param("userId") Integer userId);

    //查询预定成功的桌子号
    int selectIdByUserAndState(Integer id);
}